using System;

namespace IMath
{
    /// <summary>
    /// 数学计算接口，定义加减乘除基本运算
    /// </summary>
    public interface IMathOperation
    {
        /// <summary>
        /// 加法运算
        /// </summary>
        /// <param name="a">第一个操作数</param>
        /// <param name="b">第二个操作数</param>
        /// <returns>两个数的和</returns>
        double Add(double a, double b);
        
        /// <summary>
        /// 减法运算
        /// </summary>
        /// <param name="a">被减数</param>
        /// <param name="b">减数</param>
        /// <returns>两个数的差</returns>
        double Subtract(double a, double b);
        
        /// <summary>
        /// 乘法运算
        /// </summary>
        /// <param name="a">第一个因数</param>
        /// <param name="b">第二个因数</param>
        /// <returns>两个数的积</returns>
        double Multiply(double a, double b);
        
        /// <summary>
        /// 除法运算
        /// </summary>
        /// <param name="a">被除数</param>
        /// <param name="b">除数</param>
        /// <returns>两个数的商</returns>
        double Divide(double a, double b);
    }
}